<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="${root!}/static/css/layout.css" rel="stylesheet" type="text/css" />
<link href="${root!}/static/css/skin.css" rel="stylesheet" type="text/css" />
<link href="${root!}/static/css/dialog.css" rel="stylesheet" type="text/css" />

<script src="${root!}/static/Js/jquery-1.4.2.js" type="text/javascript"></script>

<script src="${root!}/static/js/layout.js" type="text/javascript"></script>

<script src="${root!}/static/js/dialog.js" type="text/javascript"></script>

<script src="${root!}/static/js/form.js" type="text/javascript"></script>

<script>
	var RootPath = "${root!}";
	var FormCodeUrl = RootPath + "/frame/table";
	var FormSubmitMethod = "save";
	var FormSubmitAction = "${action!}";
	
	$(document).ready(function(){ 
		$("#lstDbName").val("${bean.dbName!}");
	});
	
	function submitClick() {
		if (!CheckForm()) {
			return false;
		} else {
			SubmitForm();
		}
	}
</script>

<script>
	function aab() {

		Confirm('您是否要做删除操作？', function() {
			//确定
			Success("恭喜");
		}, function() {
			//取消
			Alert("警告");
		});

		/*
		TonySky.window("../images/dialog/aa.html", "自定义标题", 600, 400, function(v) {
		    $("#txtTitle").val(v);
		    TonySky.success("123");
		});
		 */

		//Alert("123");
	}

</script>

</head>
<body>
	<form id="myform">
		<div class="container">
			<div class="fullwidth">
				<div class="buttonGroup h30">
					<input type="button" value="确定" id="btnSubmit"
						onclick="submitClick();" /> <input type="button" value="取消"
						id="btnInsert" onclick="CloseWindow();" />
				</div>
			</div>
			<div class="hiddencalc fullwidth h4"></div>
			<div class="fullwidth calcheight onlyscrolly">
				<div class="formcontainer calcwidth">
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">表编号：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTableId"
								name="txtTableId" value="${bean.tableId!}" readonly />
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">数据库：</font>
						</div>
						<div class="control calcwidth">
							<select id="lstDbName" name="lstDbName" class="calcwidth">
								<option value="">请选择</option>
								<#if dbList??><#list dbList as m>
								<option value="${m.code!}">${m.text!}</option>
								</#list></#if>
							</select><span class="hiddencalc inputresult init" minlength="1"
								maxlength="50" controlname="数据库" bindcontrol="lstDbName"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">表名称：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTableName"
								name="txtTableName" value="${bean.tableName!}" /><span
								class="hiddencalc inputresult init" minlength="1" maxlength="50"
								controlname="表名称" bindcontrol="txtTableName"></span>
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">表描述：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtTableText" 
								name="txtTableText" value="${bean.tableText!}" />
						</div>
					</div>
					<div class="formitem halfwidth h30">
						<div class="label w150">
							<font class="labeltext">顺序号：</font>
						</div>
						<div class="control calcwidth">
							<input type="text" class="calcwidth" id="txtOrderNumber"
								name="txtOrderNumber" value="${bean.orderNumber!}" /><span
								class="hiddencalc inputresult init" validateregular="数字"
								minlength="1" maxlength="50" controlname="顺序号"
								bindcontrol="txtOrderNumber"></span>
						</div>
					</div>

				</div>
				<div class="scrollwidth hiddencalc" style="display: none;">
					<!--滚动条占位宽度-->
				</div>
			</div>
		</div>
	</form>
</body>
</html>
